<#include "/template/_openwin.html" /> 

<#assign title="修改部门"> 
<@buttons>

<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-save'" onclick="save()">保存并关闭</a>
<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-cancel'" onclick="javascript:window.close()">取消</a>
</@buttons> 

<@body>

<div>
<form id="ff" method="post" action="${root!}/framedept/update">  
<input type="hidden" name="framedept.id" value="${framedept.id!}" />
            <table class="form-table">  
                <tr>  
                    <td width="25%">上级部门:</td>  
                    <td width="75%"><select id="cc" class="easyui-combotree" value="${framedept.parentId!}" data-options="url:'${root!}/framedept/leftTree'"  name="framedept.parentId" style="width:156px;"/></td>  
                </tr>  
                <tr>  
                    <td>部门名称:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="text" value="${framedept.deptName!}" name="framedept.deptName" data-options="required:true"></input></td>  
                </tr>  
               <tr>  
                    <td>是否为真实部门:</td>  
                    <td>
                    <@intCheckbox id="cb" value="${framedept.isreal}" name="framedept.isreal" />
                    </td>  
                </tr>
                <tr>  
                    <td>排序号:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="number" value="${framedept.order!}" name="framedept.order" data-options="required:false"></input></td>  
                </tr>  
            </table>  
        </form>
</div>
</@body>
<script type="text/javascript">
	function save(){
		$('#ff').form('submit',{
			dataType:"json",
			success:function(msg){
				alert(msg);
				window.returnValue="1";
				window.close();
			}
		});
	}
	$(function(){
		$('#cc').combotree('setValue', '${framedept.parentId!}');
	});
	
</script>